import AesUtil from "../utils/AesUtil";

export default {
	id: state => AesUtil.decrypt(state.user.id),
	username: state => AesUtil.decrypt(state.user.username),
	password: state => AesUtil.decrypt(state.user.password),
	phone: state => AesUtil.decrypt(state.user.phone),
	role: state => AesUtil.decrypt(state.user.role),
	roleName: state => AesUtil.decrypt(state.user.roleName),
	nickname: state => AesUtil.decrypt(state.user.nickname),
	avatar: state => AesUtil.decrypt(state.user.avatar),
	sex: state => AesUtil.decrypt(state.user.sex),
	birth: state => AesUtil.decrypt(state.user.birth),
	createTime: state => AesUtil.decrypt(state.user.createTime),
	token: state => state.user.token,
	
	searchHistory: state => state.config.searchHistory,
	
	socketTask: state => state.socket.socketTask
}